package 卖票案例;

public class 测试类 {
    public static void main(String[] args) {
        TicketRunnable ticketRunnable = new TicketRunnable();
        Thread thread1 = new Thread(ticketRunnable,"窗口1");
        thread1.start();
        Thread thread2 = new Thread(ticketRunnable,"窗口2");
        thread2.start();
        Thread thread3 = new Thread(ticketRunnable,"窗口3");
        thread3.start();
        Thread thread4 = new Thread(ticketRunnable,"窗口4");
        thread4.start();
        Thread thread5 = new Thread(ticketRunnable,"窗口5");
        thread5.start();
        Thread thread6 = new Thread(ticketRunnable,"窗口6");
        thread6.start();
    }
}
